import service from './request'

export function getRoleList (params = {}) {
  return service({
    url: '/role',
    method: 'get',
    params,
  })
}

export function roleCreate (role) {
  return service({
    url: '/role/add',
    method: 'post',
    data: role,
  })
}

export function roleEdit (role) {
  return service({
    url: '/role/edit',
    method: 'post',
    data: role,
  })
}

export function roleDelete (ids) {
  return service({
    url: '/role/delete',
    method: 'post',
    data: { ids },
  })
}
